/*
 ============================================================================
 Name		: ListenVoaDocument.cpp
 Author	  : JohnLZeng
 Copyright   : Your copyright notice
 Description : CListenVoaDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "ListenVoaAppUi.h"
#include "ListenVoaDocument.h"
#include "MacroUtil.h"
// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CListenVoaDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CListenVoaDocument* CListenVoaDocument::NewL(CEikApplication& aApp)
	{
	CListenVoaDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CListenVoaDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CListenVoaDocument* CListenVoaDocument::NewLC(CEikApplication& aApp)
	{
	CListenVoaDocument* self = new (ELeave) CListenVoaDocument(aApp);

	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CListenVoaDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CListenVoaDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CListenVoaDocument::CListenVoaDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CListenVoaDocument::CListenVoaDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CListenVoaDocument::~CListenVoaDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CListenVoaDocument::~CListenVoaDocument()
	{
	// No implementation required
#ifdef EKA2
	SAFE_DELETE(iIconProvider);
#endif
	}

// ---------------------------------------------------------------------------
// CListenVoaDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CListenVoaDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CListenVoaAppUi;
	}

// End of File
